package com.tencreat.common.enums;


import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 商家订单状态枚举
 * @author huangwei
 */
@Getter
public enum ShopOrderStatus {

    /**
     * 商家订单状态枚举
     */
/*    USER_DELETED(100,"删除订单"),
    WAIT_PAY(101,"待用户支付"),
    CANCEL_PAY(102,"用户取消支付"),
    WAIT_SHIP(103,"待发货"),
    SHIPPED(105,"已发货"),
    WAIT_RECEIVED(106,"用户待收货");*/
    PAY(102,"待付款"),//待支付
    //    WAIT_SHIP(103,"已支付"),
    WAIT_DELIVER(103,"待发货"),
    DEL_PAY(104,"取消支付"),
    DAI_CENTXT(105,"待评价"),
    WAIT_RECEIVED(106,"待收货"),
    OK(107,"完成"),
    AFTERSALE_OK(108,"售后完成"),
    WAIT_USE(109,"待核销"),;

    ShopOrderStatus(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @EnumValue
    private final int value;
    @JsonValue
    private final String desc;

    /**
     * 单个枚举的展示
     */
    @Override
    public String toString() {
        return value + "-" + desc;
    }
}
